package cn.edu.neusoft.yuejian12.Model;

import cn.edu.neusoft.yuejian12.Service.ClubService;
import cn.edu.neusoft.yuejian12.Service.MasterService;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by 木子李 on 2017/10/16.
 */

public class MasterModel {
    private Retrofit retrofit;
    ;

    public MasterModel() {
        retrofit = new Retrofit.Builder()
                /*.baseUrl("http://172.24.10.130:8080/foodService/")*/
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
    public Call getAllmaster()
    {
        MasterService masterService=retrofit.create(MasterService.class);
        return  masterService.getAllmaster();
    }
}
